<div id="content">
	<?php
	switch($sMod){
		case 'devNotes':
			?>
			<div class="devNotes">
				<?php
				$iTimestamp = strtotime($aiasmModInfos[0]['dateNote']);
				$sDate = date('d/m/Y', $iTimestamp);
				?>
				<h4><?php echo $aiasmModInfos[0]['titleNote'] ?></h4>
				<span style="font-size:11px;float:right">(D: <?php echo $sDate ?>)</span><br />
				<p><?php echo nl2br($aiasmModInfos[0]['textNote']) ?></p>
			</div>
			<?php
			break;
		case 'news':
			?>
			<div class="news">
				<?php
				$iTimestamp = strtotime($aiasmModInfos[0]['dateNews']);
				$sDate = date('d/m/Y', $iTimestamp);
				?>
				<h4><?php echo $aiasmModInfos[0]['titleNews'] ?></h4>
				<span style="font-size:11px;float:right">(D: <?php echo $sDate ?>)</span><br />
				<p><?php echo nl2br($aiasmModInfos[0]['textNews']) ?></p>
			</div>
			<?php
			break;
		case 'project':
			?>
			<?php
			switch($aiasmModInfos[0]['statusProject']){
				case 1:
					$sColorStatus = '#900';
				break;
				case 2:
					$sColorStatus = '#090';
				break;
				case 3:
					$sColorStatus = '#009';
				break;
			}
			?>
			<div class="project">
				<h4 style="color:<?php echo $sColorStatus ?>"><?php echo $aiasmModInfos[0]['labelProject'] ?></h4>
				<p><?php echo nl2br($aiasmModInfos[0]['descriptionProject']) ?></p>
			</div>
			<?php
			break;
	}
	?>
	<div style="text-align:right"><a href="index.php?page=comment&action=add&mod=<?php echo $sMod ?>&id=<?php echo $iId ?>" title="Add Comment">Ajouter un commentaire</a></div>

	<h2 href="#comments">Commentaires</h2>

	<?php if(count($aiassCommentsList) !== 0): ?>
		<?php foreach($aiassCommentsList as $asmComment): ?>
			<div class="comment">
				<?php
				$iTimestamp = strtotime($asmComment['dateComment']);
				$sDate = date('d/m/Y', $iTimestamp);

				if(isset($_SESSION['logged']) AND $_SESSION['logged']){
					$idComment = '['.$asmComment['idComment'].']';
				}else{
					$idComment = '';
				}
				?>
				<h5><?php echo $asmComment['authorComment'].' - [<a href="'.$asmComment['websiteAuthorComment'].'">www</a>] - [<a href="mailto:'.$asmComment['emailAuthorComment'].'">email</a>]'.$idComment ?></h5>
				<span style="font-size:11px;float:right">(D: <?php echo $sDate ?>)</span><br />
				<p><?php echo nl2br($asmComment['textComment']) ?></p>
			</div>
		<?php endforeach; ?>
	<?php else: ?>
		<p>Aucun commentaire n'a été écrit.</p>
	<?php endif; ?>
</div>